package com.dynamictpm.core;

import lombok.extern.slf4j.Slf4j;

/**
 * 描述：： 动态刷新属性
 * <p>
 * ------------------------------------
 *
 * @program: dynamic-tpm
 * @ClassName ThreadPoolDynamicRefresh
 * @author: it-yml
 * @create: 2023-07-05 10:15
 * @Version 1.0
 * --------------------------------------
 **/

@Slf4j
public class ThreadPoolDynamicRefresh {
    public static void refreshDynamicPool(String content) {
        log.info("动态刷新属性值：{}",content);
//        PoolParameterInfo parameter = JSON.parseObject(content, PoolParameterInfo.class);
//        String tpId = parameter.getTpId();
//        Integer coreSize = parameter.getCoreSize(), maxSize = parameter.getMaxSize(),
//                queueType = parameter.getQueueType(), capacity = parameter.getCapacity(),
//                keepAliveTime = parameter.getKeepAliveTime();
//        refreshDynamicPool(tpId, coreSize, maxSize, queueType, capacity, keepAliveTime);
    }
}
